package com.wolfman.wolfchat.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wolfman.wolfchat.po.Message;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author wolfman
 * @since 2022-01-14
 */
public interface MessageMapper extends BaseMapper<Message> {

    /**
     * 查询聊天记录
     *
     * @param fromUserId
     * @param toUserId
     * @return
     */
    List<Message> selectMessageByUserIdAndPage(@Param("fromUserId") Integer fromUserId, @Param("toUserId") Integer toUserId);

}
